Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(helm): allow duplicate keys in template #559

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Feb 22, 2019

Prevents "duplicated mapping key" errors when loading remote charts with duplicate keys (e.g. official ambassador chart).

When loading the template with { json: true }, duplicate keys in a mapping will override values rather than throwing an error.

However, this behavior is broken for the safeLoadAll function, see: nodeca/js-yaml#456. We therefore need to use the loadAll function. See the following link for a conversation on using loadAll in this context: vmware-tanzu/kubeapps#636.

Prevents "duplicated mapping key" errors when loading remote charts with
duplicate keys (e.g. official ambassador chart).
@eysi09 eysi09 force-pushed the helm-handle-dupe-keys branch from 545f26d to 5153857 Compare February 22, 2019 10:50
@eysi09 eysi09 merged commit f1a1d1b into master Feb 22, 2019
@eysi09 eysi09 deleted the helm-handle-dupe-keys branch February 22, 2019 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants